﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="alert.aspx.cs" Inherits="admin_alert" MasterPageFile="~/admin/MasterPage2.master" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">

     <table  cellpadding="0" cellspacing="0" class="letraAzul" width="1100px">
    <tr>
    <td  bgcolor="#FA7E02">
        <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </cc1:ToolkitScriptManager>
        </td>
    </tr>
    <tr>
    <td bgcolor="White" align="char">
        <table align="center">
            <tr>
                
                <td align="char">
                    <asp:Panel ID="pdnew" runat="server" CssClass="popup" Width="900px">
                        <table align="center" width="800px">
                           
                            <tr>
                                <td colspan="4">
                                    <asp:Panel ID="Pdetail" runat="server" BorderColor="Silver" 
                                        BorderStyle="Outset" Width="800px">
                                    <table class="letraNegra13" width="500" align="center"> 
                                     <tr>
                                <td bgcolor="#FA7E02" class="caption" colspan="2">
                                    New Alert</td>
                            </tr><tr>
                                <td>
                                    To:</td>
                                <td>
                                    <asp:DropDownList ID="cb_to" runat="server" CssClass="txtForm" Width="177px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Message:</td>
                                <td>
                                    <asp:TextBox ID="tb_msg" runat="server" CssClass="txtForm" 
                                        TextMode="MultiLine" Width="100%" Font-Names="Arial Narrow" 
                                        Font-Size="Medium"></asp:TextBox>
                                   
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                
                                    <asp:LinkButton ID="bt_save" runat="server" CssClass="button2_ok" 
                                        ForeColor="White" onclick="Button5_Click"><span>Save</span></asp:LinkButton>
                                </td>
                            </tr></table>
                                    </asp:Panel>
                                </td>
                            </tr>
                           

                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr align="center">
                                <td colspan="4">
                                    <asp:Panel ID="Plistalert" runat="server" HorizontalAlign="Left">
                                        <asp:GridView ID="gv_alert" runat="server" Width="800px" 
                                             HorizontalAlign="Center" 
                                            
                                            Caption="<table border='0' width='100%' cellpadding='0' cellspacing='0' class='caption' bgcolor='#FA7E02'><tr><td>Enable Alerts </td></tr></table>" 
                                            CssClass="letraNegra13" AutoGenerateColumns="False" >
                                            <Columns>
                                                <asp:TemplateField>
                                                  <ItemTemplate>
                                               
                                                      <asp:ImageButton ID="bt_delete"   OnClick="delete" Visible="true" Text="Edit" runat="server" ImageUrl="~/img/uncancelled.png" Width="30" />
                                                     </ItemTemplate></asp:TemplateField>
                                                 <asp:TemplateField HeaderText= "" HeaderStyle-HorizontalAlign="Left"><ItemTemplate  >
                                                                    <asp:Label ID="lb_id" runat="server" Text='<%# Eval("id")%>' 
                                                                        TextAlign="Left" Visible="false" Width="10px" />
                                                  </ItemTemplate></asp:TemplateField>
                                                   <asp:TemplateField HeaderText= "To" HeaderStyle-HorizontalAlign="Left"><ItemTemplate  >
                                                                    <asp:Label ID="lb_to" runat="server" Text='<%# Eval("toagent")%>' 
                                                                        TextAlign="Left" Visible="true" Width="100px" />
                                                  </ItemTemplate></asp:TemplateField>
                                                  <asp:TemplateField HeaderText= "From" HeaderStyle-HorizontalAlign="Left"><ItemTemplate  >
                                                                    <asp:Label ID="lb_from" runat="server" Text='<%# Eval("fromagent")%>' 
                                                                        TextAlign="Left" Visible="true" Width="100px" />
                                                  </ItemTemplate></asp:TemplateField>
                                                  <asp:TemplateField HeaderText= "Message" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                    <asp:Label ID="tbx_msg" runat="server" Text='<%# Eval("message")%>' 
                                                                        Width="250px" Enabled="false" Font-Bold="false" />
                                                    </ItemTemplate></asp:TemplateField>
                                                    <asp:TemplateField HeaderText= "Date" HeaderStyle-HorizontalAlign="Left"><ItemTemplate  >
                                                                    <asp:Label ID="lb_date" runat="server" Text='<%# Eval("date")%>' 
                                                                        TextAlign="Left" Visible="true" Width="100px" />
                                                  </ItemTemplate></asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </asp:Panel>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                                                       <tr>
                                <td colspan="4">
                               
                                     
                                 
                                   
                                        <asp:ImageButton ID="bt_hide" runat="server" ImageUrl="~/blank.gif" />
                                   
                                  <cc1:ModalPopupExtender ID="bt_finish_ModalPopupExtender" runat="server" BackgroundCssClass="FondoAplicacion"
                                        DynamicServicePath="" Enabled="True" TargetControlID="bt_hide" PopupControlID="PMsg" OkControlID="lnk_msg_ok">
                                    </cc1:ModalPopupExtender>
                                    
                                  

                                   
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            
            <tr>
                
                <td>
                    <asp:Panel ID="PMsg" runat="server" CssClass="popup" Width="300px" 
                        Visible="true">
                       <table width="300">
                                               
                                                <tr>
                                                    <td style="text-align: center">
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: center">
                                                        Are you shure?</td>
                                                </tr>
                                                <tr>
                                                    <td align="center">
                                                        <table align="center">
                                                            <tr>
                                                                <td>
                                                                    <asp:LinkButton ID="lnk_msg_ok" runat="server" CssClass="button2_ok" 
                                                                        ForeColor="White" onclick="lnk_msg_ok_Click"  ><span>Cancel</span></asp:LinkButton>
                                                                </td><td>
                                                                    <asp:LinkButton ID="lnk_msg_ok0" runat="server" CssClass="button2_ok" 
                                                                        ForeColor="White" onclick="lnk_msg_ok0_Click"><span>Delete</span></asp:LinkButton>
                                                                </td>
                                                                
                                                            </tr>
                                                        </table>
                                                    </td>
                                                    
                                                </tr>
                                            </table>
                    </asp:Panel>
                </td>
            </tr>
        </table>
        </td>
    </tr>
    <tr>
    <td bgcolor="White">&nbsp;</td>
    </tr>
    </table>


</asp:Content>

